<?php
class Zen_Filter_EdgeArray {
	
	public static function filter($array) {
		if(! count($array)) return $array;
		reset($array);
		$key = key($array);
		$array[$key]['first']=true;
		end($array);
		$key = key($array);
		$array[$key]['last']=true;
		return $array;
	}
}